<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="app-5">
    <p>{{ message }}</p>
    <button v-on:click="eat">吃屎</button>
    <input v-model="message">
</div>
</body>
</html>
<script>
    var app5 = new Vue({
        el: '#app-5',
        data: {
            message: 'Hello Vue.js!'
        },
        methods:{
            eat:function () {
                this.message=new Date();
            }
        }
    });

    /**
     * 运行流程
     * 1. 绑定元素id
     * 2. new Vue
     * 3. el绑定app
     * 4. data赋值
     */
</script>